package dbtools.structures;

import java.sql.Blob;
import java.sql.SQLException;


public class DBFieldBlob extends DBField<byte[]>{

	private static final long serialVersionUID = 1L;

	@Override
	public String getSqlType() {
		return "BLOB";
	}
	
	public void _setValueFromSQL(Object value){
		Blob b = (Blob) value;
		try {
			super._setValueFromSQL(b.getBytes(1, (int) b.length()));
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	
}
